package com.sky.service;

import com.sky.dto.EmployeeLoginDTO;
import com.sky.dto.EmployeePageQueryDTO;
import com.sky.dto.PasswordEditDTO;
import com.sky.entity.Employee;
import com.sky.result.PageBean;

public interface EmployeeService {

    /**
     * 员工登录
     * @param employeeLoginDTO
     * @return
     */
    Employee login(EmployeeLoginDTO employeeLoginDTO);

    /**
     * 员工分页
     * @param employeePageQueryDTO
     * @return
     */
    PageBean getEmployees(EmployeePageQueryDTO employeePageQueryDTO);

    void addEmp(Employee emp);

    Employee getEmp(String id);

    void updateEmp(Employee emp);

    void changeStatus(String status, String id);

    boolean editPassword(PasswordEditDTO password);
}
